import {get} from '@/utils/fetch'

export const getAll = async ({unitIds, exerciseType = 'FLASH_CARD'}) => {
  let rs = await get({
    path: `/v1/exercises`,
    data: {
      exerciseType,
      unitIds
    }
  })
  return rs.exercises || []
}
